﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GovernAllowApply.aspx.cs"
    Inherits="BOH.DataManagement.GovernAllowApply" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style/css.css" type="text/css" rel="Stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="divNavigation">
        当前位置:<a href="GovernAllowApply.aspx" target="frameControl">系统管理</a> >> 主管局申报开关
    </div>
    <div id="bodyDiv">
        <div id="divSearch">
            <asp:Button runat="server" ID="butOpenAll" Text="开放全部" 
                onclick="butOpenAll_Click" />&nbsp;&nbsp;&nbsp;
            <asp:Button runat="server" ID="butCloseAll" Text="关闭全部" 
                onclick="butCloseAll_Click" />
        </div>
    </div>
    <div id="divGrid">
        <asp:GridView ID="GovernAllowApplyList" runat="server" Width="99%" AutoGenerateColumns="False"
            CssClass="Grid" AllowPaging="false" 
            onrowcommand="GovernAllowApplyList_RowCommand" 
            onrowdatabound="GovernAllowApplyList_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="主管局名称">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                    <ItemTemplate>
                        <asp:HiddenField ID="hidGovern" runat="server" Value='<%#Eval("GovernID") %>' />
                        <asp:HiddenField ID="hidAllowApply" runat="server" Value='<%#Eval("ApplyConfirmedInd") %>' />
                        <asp:Label ID="labGovern" runat="server" Text='<%#Eval("GovernName") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="是否开放">
                    <HeaderStyle HorizontalAlign="center" />
                    <ItemStyle HorizontalAlign="center" />
                    <ItemTemplate>
                        <asp:DropDownList ID="drpIsOpen" runat="server">
                            <asp:ListItem Text="不开放" Value="N"></asp:ListItem>
                            <asp:ListItem Text="开放" Value="Y"></asp:ListItem>
                        </asp:DropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:ButtonField CommandName="Save" Text="保存" ControlStyle-Width="50px" ItemStyle-HorizontalAlign="Center"
                    HeaderText="保存" />
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
